package test0ne;

public enum AgentStatusEnum {
    Online(0,"在线"),
    Offline(1,"离线"),
    Busy(2,"忙碌"),
    Eating(3,"用餐"),
    Meeting(4,"会议"),
    Training(5,"培训"),
    Rest(6,"小休"),
    Leaving(7,"离开"),


    PostProcess(8, "后处理"),
    CallBack(9, "回电"),
    ;

    private int status;
    private String content;

    AgentStatusEnum(int status,String content){
        this.status = status;
        this.content = content;
    }

    public static AgentStatusEnum of(int status){
        for(AgentStatusEnum e : AgentStatusEnum.values()){
            if(e.getStatus() == status){
                return e;
            }
        }
        return null;
    }

    public int getStatus() {
        return status;
    }

    public String getContent() {
        return content;
    }}
